class Page extends React.Component {

	componentWillMount() {
		document.title = this.props.title;
		document.body.parentNode.style.fontSize = '16px';
	}

	render() {
		return(
			<div className={`page ${this.props.spacing ? 'spacing' : ''}`}>
				{this.props.children}
			</div>
		)
	}
};

export default Page;
